package com.example.producer;



import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * Created by crj on 2018/1/22.
 */
@Configuration
public class SenderConf {
    @Bean
    public Queue queue(){
        return  new Queue("test");
    }

    @Bean
    public Queue chinaqueue(){
        return  new Queue("china");
    }
}
